package com.cr.sync.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 远程数据-品牌产品管理对象 tb_sync_brand_product
 * 
 * @author tang
 * @date 2025-08-29
 */
public class TbSyncBrandProduct implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 所属企业名称 */
    private String mainBodyName;

    /** 品牌类型【1绿色、有机、地标  2公共品牌  3名特优新】 */
    private String brandType;

    /** 农产品名称 */
    private String productName;

    /** 认证开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validStartDate;

    /** 认证结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validEndDate;

    /** 证书编号 */
    private String certificateNo;

    /** 认证年产量(吨) */
    private String attYearOutput;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMainBodyName(String mainBodyName) 
    {
        this.mainBodyName = mainBodyName;
    }

    public String getMainBodyName() 
    {
        return mainBodyName;
    }

    public void setBrandType(String brandType) 
    {
        this.brandType = brandType;
    }

    public String getBrandType() 
    {
        return brandType;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setValidStartDate(Date validStartDate) 
    {
        this.validStartDate = validStartDate;
    }

    public Date getValidStartDate() 
    {
        return validStartDate;
    }

    public void setValidEndDate(Date validEndDate) 
    {
        this.validEndDate = validEndDate;
    }

    public Date getValidEndDate() 
    {
        return validEndDate;
    }

    public void setCertificateNo(String certificateNo) 
    {
        this.certificateNo = certificateNo;
    }

    public String getCertificateNo() 
    {
        return certificateNo;
    }

    public void setAttYearOutput(String attYearOutput) 
    {
        this.attYearOutput = attYearOutput;
    }

    public String getAttYearOutput() 
    {
        return attYearOutput;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainBodyName", getMainBodyName())
            .append("brandType", getBrandType())
            .append("productName", getProductName())
            .append("validStartDate", getValidStartDate())
            .append("validEndDate", getValidEndDate())
            .append("certificateNo", getCertificateNo())
            .append("attYearOutput", getAttYearOutput())
            .toString();
    }
}
